package org.eae.eldf.service.base.impl;

import org.eae.eldf.dao.base.IBaseParameterDao;
import org.eae.eldf.dao.base.impl.BaseParameterDaoImpl;
import org.eae.eldf.entity.base.BaseParameter;
import org.eae.eldf.framework.pager.Pagination;
import org.eae.eldf.framework.persistence.Criteria;
import org.eae.eldf.framework.service.BaseServiceImpl;
import org.eae.eldf.service.base.BaseParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
 * ****************************************************************************
 * @File name   :      BaseParameterServiceImpl.java
 *
 * @Author      :      qubibo
 *
 * @Date        :      2016-6-7
 *
 * @Copyright Notice: 
 * Copyright (c) 2016 Efast Serv. All  Rights Reserved.
 * This software is published under the terms of the Efast Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2016-6-7 上午10:54:19        qubibo     1.0            Initial Version
 ****************************************************************************
 */
@Service
@Transactional
public class BaseParameterServiceImpl extends BaseServiceImpl<BaseParameter> implements BaseParameterService{

	private IBaseParameterDao baseParameterDao;
	
	@Autowired
	public void setBaseParameterDao(BaseParameterDaoImpl baseParameterDao) {
		this.baseParameterDao = baseParameterDao;
		this.dao = baseParameterDao;
	}


	@Override
	public Pagination<BaseParameter> queryListBaseParameter(
			Pagination<BaseParameter> pager, String searchValue) {
		// TODO Auto-generated method stub
		return baseParameterDao.queryListBaseParameter(pager, searchValue);
	}


	@Override
	public void del(Long id) {
		// TODO Auto-generated method stub
		baseParameterDao.update(Criteria.create(BaseParameter.class).set("valid", 1).where("baseParameterId", new Object[]{id}));
	}


	

}
